package com.jx.controller;

import com.jx.entity.UserInfo;
import com.jx.service.UserInfoService;
import jakarta.annotation.Resource;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@SpringBootTest
/*@RestController*/
public class UserInfoController {

    @Resource
    UserInfo userInfo;

    @Value("${user.name}")
    private String name111;

   /* @RequestMapping("/user")
    public String add(){
        System.out.println(userInfo);
        System.out.println("name:"+name111);
        return userInfo.getLiuname();
    }*/

    @Test
    public void add(){
        System.out.println(userInfo);
        System.out.println("name:"+name111);
    }
}
